#ifndef _BUOLA_CV_FEATURES_CMATCHVIEW_H_
#define _BUOLA_CV_FEATURES_CMATCHVIEW_H_

#include <buola/gui/containers/cmosaiccontainer.h>

#include <buola/cv/features/cfeatureview.h>

namespace buola { namespace cvi {

class CMatchView : public gui::CMosaicContainer
{
public:
    CMatchView();
    ~CMatchView();

public:
    virtual void OnExpose(const gui::CExposeEvent &pE);
    virtual void OnKeyDown(const gui::CKeyEvent &pE);
    
    void SetImages(const img::CPicture &pImage1,const img::CPicture &pImage2);
    void SetFeatures(CFeatureSet &&pSet1,CFeatureSet &&pSet2);
    void SetMatches(const std::vector<CMatch> &pMatches);
    void SelectMatch(int i);
    
protected:
    PFeatureView mFeatureView1,mFeatureView2;
    std::vector<CMatch> mMatches;
    int mIndex;
};

/*namespace cvi*/ } /*namespace buola*/ }

#endif
